package com.qdxwx.data.mapper.channel;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.channel.Channel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface ChannelMapper {

    int insertChannel(Channel channel);

    int updateChannel(Channel channel);

    Channel selectById(int channelId);

    Channel selectByDir(String channelDir);

    List<Channel> selectList(@Param("e") Channel channel, @Param("page") PageRequest page);

    long selectCount(@Param("e") Channel channel);

    int deleteById(int channelId);

    int updateDisabled(Channel channel);

    List<Channel> selectListByCompanyId(int companyId);
}
